#!/usr/bin/env python

# INSTRUCTIONS:
# 
# (1) Implement the TextMessage class accordig to docstring specifications.


class CellPhone(object):
    '''Simple cell phone that can make and receive calls

    Instance attributes:

    owner -- string name of the cell phone owner
    '''

    
    
    def __init__(self, owner_name):
        '''Initializes the owner's name'''
        self.owner = owner_name
        self.ring_tone = "ring ring"
        self.default_message = "receiving call from"
        self.list = []
        
        
    def returnName(self):
        '''Returns owner's name'''
        print self.owner
        


  
    def makeCall(self, other_phone):
        '''This function will print "calling ... <recipient name>"
        '''
        print "calling", other_phone.owner
        


    def receiveCall(self, other_phone):
        '''This function will print default_message ... <recipient name>"
        and then calls the function to ring.
        '''
        print owner.default_message, other_phone.owner
        self.ringTone()
        


    def ringTone(self):
        "Print out the sound of the ring tone on this phone"
        print ring_tone
        
    def updateRingTone(self, new_ring_tone):
        "Updates the user's ringtone"
        self.ring_tone = new_ring_tone
        
    def updateMessage(self, new_message):
        "Updates ringtones to be specific to the caller"
        self.default_message = self.new_message
        
        
        
        
        
